﻿@using PNProject.EF;
@{
    Layout = null;
    List<Banner> banners = (List<Banner>)ViewData["banners"];
}

<div class="banner">
    <div id="zalen">
        <div id="slider-wrapper">
            <div id="slider" class="nivoSlider">
                @foreach(var item in banners)
                {
                    <img src="@item.URL" alt=""/>
                }
                
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(window).load(function () {
            $('#slider').nivoSlider();
        });
    </script>
</div>